﻿using System.Configuration;
using System.Web.Configuration;

namespace prjYan.Forum.App_Start
{
    public class ConnectionConfig
    {
        public static void SetConnectionString()
        {
            YanForum.Engine.Services.BaseService.ConnectionString = ConfigurationManager.ConnectionStrings["DefaultConnection"].ConnectionString;
            YanForum.Engine.Services.BaseService.FtpUserUploadImg = WebConfigurationManager.AppSettings["FtpUserUploadImg"];
            YanForum.Engine.Services.BaseService.FtpPassUploadImg = WebConfigurationManager.AppSettings["FtpPassUploadImg"];
            YanForum.Engine.Services.BaseService.FtpServerPath = WebConfigurationManager.AppSettings["FtpServerPath"];
            YanForum.Engine.Services.BaseService.ImgServerPath = WebConfigurationManager.AppSettings["ImgServerPath"];
            YanForum.Engine.Services.BaseService.GetDomain = WebConfigurationManager.AppSettings["HostName"];
        }
    }
}